package com.reading.common.persistence.view;

import com.reading.common.entity.view.BookCollect;
import org.apache.ibatis.annotations.Param;

import javax.annotation.Resource;

@Resource
public interface BookCollectMapper {
    Integer delete(BookCollect record);

    Integer insert(BookCollect record);

    Integer selectCollectCountByBookId(Integer bookId);

    Integer selectCollectStatus(@Param("bookId") Integer bookId, @Param("userId") Integer userId);
}